﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zad7
{
    class Program
    {
        static void Main()
        {
            int[] collection = { 21, 3, 7, 63, 8, 9 };
            var divBy7And3 =
                from num in collection
                where (num % 3 == 0 && num % 7 == 0)
                select num;
            foreach (var item in divBy7And3)
            {
                Console.WriteLine(item);
            }
        }
    }
}
